<?xml version='1.0' encoding='UTF-8' ?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:q="http://java.sun.com/jsf/composite/customcomponents">
<composite:interface>
    <composite:attribute name="widgetVar" />
    <composite:attribute name="targetBean" />
    <composite:attribute name="targetProperty" />
    <composite:attribute name="componentsToProcess" default="@none" />
</composite:interface>

<composite:implementation>

    <p:dialog id="idDialogPracticoProfessor"
              widgetVar="componentDiagprofesor"
              minWidth="500"
              visible="#{dgtController.renderTablePracticoProfessor}">
        <p:dataTable lazy="true" paginator="true" rows="5"
                     paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                     id='idTablePracticoProfesor' value="#{dgtController.practicoProfesorList}" var="profesorvar">
            <p:column headerText="Nif">
                #{profesorvar.nif}
            </p:column>
            <p:column headerText="Nombres">
                #{profesorvar.nombres}
            </p:column>
            <p:column headerText="Apellidos">
                #{profesorvar.apellidos}
            </p:column>
            <p:column headerText="Telefono">
                #{profesorvar.telefono}
            </p:column>
            <p:column headerText="Accion">
                <p:commandLink value="Seleccionar"
                               onclick="componentDiagprofesor.hide();"
                               process="@this"
                               actionListener="#{dgtController.onRowSelectPracticoProfesor(profesorvar)}"
                               update=":formgdt:tabViewgdt:idPracticoProfessor"  >
                </p:commandLink>
            </p:column>
        </p:dataTable>
    </p:dialog>

</composite:implementation>
</html>